<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
		<script type="text/javascript" charset="utf-8">
			function findByStaffcode(){
				var staffcode_value = document.getElementById('staffcode_id').value;
				var findByStaffcode_form = document.getElementById('findByStaffcode_form');
				if(staffcode_value == '请输入员工代号' || staffcode_value == '') {
					alert('请输入员工代号');
				}else {
					//alert(deptcaption_value);
					findByStaffcode_form.action = 'getPersonnel.action';
					findByStaffcode_form.submit();
					//parent.frames['content'].location='findDeptByDeptcaption.action?deptcaption=' + deptcaption_value;
				}
			}	
			
			function checkValue(field){
				if(field.value == ''){
					field.value = '请输入员工代号';
				}
			}	
		</script>
		</head>
	<body bgcolor="#ccddee" link="#000066" vlink="#0066FF" alink="#99FF00">
		<table>
			<tr>
				<td width="50">
					<input type="button" value="添加人员"
						onclick="parent.frames['content'].location='goAddPersonnel.action'" />
				</td>
				<td width="50">
					<input type="button" value="查看人员列表" onclick="parent.frames['content'].location='getAllPersonnels.action'" />
				</td>
				<td width="100%" align="right">
					<form action="" id="findByStaffcode_form" method="post" target="content">
					<input type="text" id="staffcode_id" name="staffcode" value="请输入员工代号" onclick="this.value=''" onblur="checkValue(this);">
					<input type="button" value="查找" onclick="findByStaffcode()" />
					</form>
				</td>
			</tr>
		</table>
	</body>
</html>
